superstrict

framework BRL.Blitz

import "../../lib/errorutil/errorutil.bmx"
import "../../framework/exit/exit.c"
import "Master.bmx"

include "../../framework/exit/exit.bmx"

execute();

'// ----------------------------------------------------------------------------------------------------------------
'// Main. All it does is launch the master thread, and return an error message when shutting down, if the master
'// thread function returns anything other than 'null'. 
'// ----------------------------------------------------------------------------------------------------------------
function main:int()

	'// Set application title.
	appTitle = sMaster.GAME_TITLE;
	
	'// Launch the master thread.
	if (not sMaster.run(null)) ..
		return 1;
	
	'// Return a successful termination of the program.
	return 0;

end function
